function P = Gaussiandist(n)
if mod(n,2)== 0
    x=n/2;
    alfa=1/(x*(x+1));
else x=n/2 - 0.5;
    alfa=1/(x+1)^2;
    P(x+1)=alfa*(x+1);
end
for i=1:x
    P(i)=alfa*i;
    P(n-i+1)=alfa*i;
end
end